﻿#include "precomp.h"
#include <QApplication>
#include <QTextCodec>
#include <QDateTime>
#include <QtGui>
#include "mainwindow.h"

int main(int argc, char **argv)
{
    // textcodec
    QTextCodec::setCodecForLocale(QTextCodec::codecForName("GBK"));
#if QT_VERSION < 0x050000
    QTextCodec::setCodecForTr(QTextCodec::codecForLocale());
    QTextCodec::setCodecForCStrins(QTextCodec::codecForLocale());
#endif

    QApplication app(argc, argv);

    app.setApplicationName("data analyse");
    app.setApplicationDisplayName(QStringLiteral("Data Analyse Keygen"));
    app.setApplicationVersion("1.0.0");
    app.setWindowIcon(QIcon(":/resource/logo.png"));

    app.setFont(QFont("Microsoft Yahei", 9));

    MainWindow mainWindow;
    mainWindow.resize(600, 200);
    mainWindow.show();

    return app.exec();
}
